/**
 * @JsonIteratorMixedJsonEncoder.java  COPYRIGHT xiaojian
 * 
 * Created on 2017年6月21日 上午11:35:40
 */
package xj.toolkit.netty.handler.codec.tcp.encode;

import com.google.common.base.Preconditions;
import com.jsoniter.output.JsonStream;

import io.netty.channel.ChannelHandler;

/**
 * @author <a href="mailto:cxj2000@gmail.com">xiaojian.cao</a>
 *
 */
@ChannelHandler.Sharable
public class JsonIteratorMixedJsonEncoder extends MixedJsonEncoder {

	@Override
	protected String buildJson(Object msg) {
		Preconditions.checkArgument(msg != null);

		return JsonStream.serialize(msg);
	}

}
